package com.shasselclub.project.ask.problem.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shasselclub.framework.aspectj.lang.annotation.Excel;
import com.shasselclub.framework.web.domain.BaseEntity;

/**
 * 问题管理对象 t_problem
 * 
 * @author 郑云飞
 * @date 2022-08-05
 */
public class Problem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 所属问卷id */
    @Excel(name = "所属问卷id")
    private Long questionId;
    private String quetionName;

    /** 问题类型；1：单选 */
    @Excel(name = "问题类型；1：单选")
    private String type;

    /** 问题题目 */
    @Excel(name = "问题题目")
    private String title;

    /** 问题序号 */
    @Excel(name = "问题序号")
    private Long titleOrder;

    /** 删除标志;0:未删除；1：已删除 */
    private Long deleteFlg;

    /** 问题答案选项信息 */
    private List<Answer> answerList;
    /** 问题得分 */
    @Excel(name = "问题得分")
    private Long score;

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setquestionId(Long questionId)
    {
        this.questionId = questionId;
    }

    public String getQuetionName() {
        return quetionName;
    }

    public void setQuetionName(String quetionName) {
        this.quetionName = quetionName;
    }

    public Long getquestionId()
    {
        return questionId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setTitleOrder(Long titleOrder)
    {
        this.titleOrder = titleOrder;
    }

    public Long getTitleOrder()
    {
        return titleOrder;
    }
    public void setDeleteFlg(Long deleteFlg)
    {
        this.deleteFlg = deleteFlg;
    }

    public Long getDeleteFlg()
    {
        return deleteFlg;
    }

    public List<Answer> getAnswerList()
    {
        return answerList;
    }

    public void setAnswerList(List<Answer> answerList)
    {
        this.answerList = answerList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getquestionId())
            .append("type", getType())
            .append("title", getTitle())
            .append("titleOrder", getTitleOrder())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleteFlg", getDeleteFlg())
            .append("answerList", getAnswerList())
            .toString();
    }
}
